﻿@{
    ViewBag.Title = "Home";
}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生在线考试终端</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <!-- load css -->
    <link type="text/css" href="~/common/layui/css/layui.css" rel="stylesheet" media="all" />
    <link type="text/css" href="~/common/global.css" rel="stylesheet" media="all" />
    <link type="text/css" href="~/content/css/adminstyle.css"  rel="stylesheet" />
    <link type="text/css" href="~/common/bootstrap/css/bootstrap.css" rel="stylesheet" media="all" />
    <link type="text/css" href="~/content/css/main.css" rel="stylesheet" media="all">

</head>
<body>
    <div class="layui-layout layui-layout-admin" id="layui_layout" lay-filter="side">
        <!-- 顶部区域 -->
        <div class="layui-header header header-demo">
            <div class="layui-main">
                <!-- logo区域 -->
                <div class="admin-logo-box">
                    <a class="logo" @*href="http://www.kuxuebao.net"*@ title="logo"><img src="../common/images/logo.png" alt=""></a>
                    <div class="larry-side-menu">
                        <i class="fa fa-bars" aria-hidden="true"></i>
                    </div>
                </div>
             
                <!-- 右侧导航 -->
                <ul class="layui-nav larry-header-item">                   
                    <li class="layui-nav-item">
                        <a href="javascript:;" id="lock">
                            <i class="iconfont icon-diannao1"></i>
                            锁屏
                        </a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="/Home/Studentlogin">
                            <i class="iconfont icon-exit"></i>
                            退出
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <!-- 左侧侧边导航开始 -->
        <div class="layui-side layui-side-bg layui-larry-side" id="larry-side">
            <div class="layui-side-scroll" id="larry-nav-side" lay-filter="side">
                <div class="user-photo">
                    <a class="img" title="我的头像">
                        <img src="~/content/images/user.jpg" class="userimg1">                   
                    </a>
                    <p>你好！admin, 欢迎登录</p>
                </div>
                <!-- 左侧菜单 -->
                <ul class="layui-nav layui-nav-tree">
                    <li class="layui-nav-item layui-this">
                        <a href="javascript:;" data-url="main.html">
                            <i class="iconfont icon-home1" data-icon='icon-home1'></i>
                            <span>后台首页</span>
                        </a>
                    </li>
                    <!-- 个人信息 -->
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="iconfont icon-jiaoseguanli"></i>
                            <span>我的面板</span>
                            <em class="layui-nav-more"></em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="/index/personinfo" data-url="personInfo.html">
                                    <i class="iconfont icon-geren1" data-icon='icon-geren1'></i>
                                    <span>个人信息</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="/index/changepwd" data-url="changepwd.html">
                                    <i class="iconfont icon-iconfuzhi01" data-icon='icon-iconfuzhi01'></i>
                                    <span>修改密码</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="/index/myloginfo" data-url="myloginfo.html">
                                    <i class="iconfont icon-piliangicon" data-icon='icon-piliangicon'></i>
                                    <span>日志信息</span>
                                </a>
                            </dd>
                        </dl>
                    </li>
                    <!-- 用户管理 -->
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="iconfont icon-jiaoseguanli2"></i>
                            <span>用户管理</span>
                            <em class="layui-nav-more"></em>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;" data-url="userlist.html">
                                    <i class="iconfont icon-yonghu1" data-icon='icon-yonghu1'></i>
                                    <span>用户列表</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;">
                                    <i class="iconfont icon-jiaoseguanli4" data-icon='icon-jiaoseguanli4'></i>
                                    <span>角色列表</span>
                                </a>
                            </dd>
                            <dd>
                                <a href="javascript:;">
                                    <i class="iconfont icon-quanxian2" data-icon='icon-quanxian2'></i>
                                    <span>菜单管理</span>
                                </a>
                            </dd>
                        </dl>
                    </li>
                 
                </ul>
            </div>
        </div>

        <!-- 左侧侧边导航结束 -->
        <!-- 右侧主体内容 -->
        <div class="layui-body" id="larry-body" style="bottom: 0;border-left: solid 2px #1AA094;">
            <div class="layui-tab layui-tab-card larry-tab-box" id="larry-tab" lay-filter="demo" lay-allowclose="true">
                <ul class="layui-tab-title">
                    <li class="layui-this" id="admin-home"><i class="iconfont icon-diannao1"></i><em>后台首页</em></li>
                </ul>
                <div class="layui-tab-content" style="min-height: 150px; ">
                    <div class="layui-tab-item layui-show">
                       @RenderBody()
                    </div>
                </div>
            </div>


        </div>

        <!-- 底部区域 -->
        <div class="layui-footer layui-larry-foot" id="larry-footer">
            <div class="layui-mian">
                <div class="larry-footer-left">
                    <span>项目版权归属于第五项目组</span>
                </div>
                <p class="p-admin">
                    <span>2016 &copy;</span>
                    Write by Larry,<a href="http://www.larrycms.com">LarryCMS</a>. 版权所有
                    前端框架layui，下载地址：www.layui.com
                </p>
            </div>
        </div>
    </div>
    <div class="site-mobile-shade"></div>


    <!-- 加载js文件-->
    <script type="text/javascript" src="~/common/layui/layui.js"></script>
    <script type="text/javascript" src="~/content/js/larry.js"></script>
    <script type="text/javascript" src="~/content/js/index.js"></script>
    <script src="~/common/jquery-1.9.1.min.js"></script>
    <script src="~/common/layui/layui.js" charset="utf-8"></script>
    <!-- 锁屏 -->
    <div id="lock-screen" class="lock-screen" style="display: none;">
        <div id="locker" class="lock-wrapper">
            <div id="time"></div>
            <div class="lock-box center">
                <img src="~/content/images/userimg.jpg" alt="">
                <h1>admin</h1>
                <duv class="form-group col-lg-12">
                    <input type="password" placeholder='锁屏状态，请输入密码解锁' id="lock_password" class="form-control lock-input" autofocus name="lock_password">
                    <button id="unlock" class="btn btn-lock">解锁</button>
                </duv>
            </div>
        </div>
    </div>件 -->

    <!-- <div class="larry-tab-menu">
        <span class="layui-btn larry-test">刷新</span>
    </div> -->
    <!-- iframe框架刷新操作 -->
    <!-- <div id="refresh_iframe" class="layui-btn refresh_iframe">刷新</div> -->

</body>
</html>

<script>
    layui.use('element', function () {
        var element = layui.element(); //导航的hover效果、二级菜单等功能，需要依赖element模块
        form.on('a(side)', function (data) {
            console.log(data);
        });
    });

    layui.config({});
    $("#lock").click(function () {
        $("#lock-screen").show();
    })
    $("#unlock").click(function () {
        var pwd = $("#lock_password").val()
        if (pwd != "") {
            if (pwd == "admin") {
                $("#lock-screen").hide();
            }
            else {
                alert("锁屏密码有误！");
            }
        }
        else {
            alert("请输入锁屏密码！");
        }


    })

</script>
